]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Remove unnecessary code
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Jan 2024 12:35:53 +0000 (13:35 +0100)
committerMarge Bot <marge-bot@gnome.org>
Fri, 19 Jan 2024 17:56:25 +0000 (17:56 +0000)
Since commit a4660293748, the activities button uses the standard
`:checked` pseudo class in the overview instead of the custom
`:overview`.

As a side effect, the generic handling of the `CHECKED` Atk state
in StWidget now covers the case, and we no longer need to manage
the state explicitly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3126>

js/ui/panel.js

index 1041bac8d14ef22ce03c72534877616d3b30b3d6..7318e95f084646a2450215e86f7c31524ab07a39 100644 (file)
@@ -429,11 +429,9 @@ class ActivitiesButton extends PanelMenu.Button {
 
         Main.overview.connect('showing', () => {
             this.add_style_pseudo_class('checked');
-            this.add_accessible_state(Atk.StateType.CHECKED);
         });
         Main.overview.connect('hiding', () => {
             this.remove_style_pseudo_class('checked');
-            this.remove_accessible_state(Atk.StateType.CHECKED);
         });
 
         this._xdndTimeOut = 0;